package com.sg.controller.bff;

import com.sg.service.biz.bff.EvaTempFillSetService;
import com.sg.dto.biz.bff.req.*;
import com.sg.dto.biz.bff.res.*;
import com.sg.common.ro.OkrResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @version 1.0
 * @date ：
 */
@Api(value = "EvaTempFillSet", tags = {"EvaTempFillSet"})
@RestController
// @RequestMapping("/oms/evaTempFillSet/")
public class EvaTempFillSetController {

    @Autowired
    EvaTempFillSetService evaTempFillSetService;

    /**
     * B3-3新增评价模板填报设置(管理)
     * gen by moon at 10/2/2022, 11:28:01 PM
     */
    @PostMapping("/oms/mgt/evaTempFillSet/addEvaTempFillSet")
    @ApiOperation(value = "B3-3新增评价模板填报设置(管理)", response = OkrResult.class)
    public OkrResult<BffAddEvaTempFillSetRespDto> addEvaTempFillSet(@RequestBody(required = false) @Validated BffAddEvaTempFillSetReqDto reqDTO) {
        return OkrResult.success(evaTempFillSetService.addEvaTempFillSet(reqDTO));
    }
}
